package com.tianji.jersey.subresource.test;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Path("/main")
@Scope("prototype")
public class MainResource {
@GET
@Produces("text/html")
public String getMain(){

return "mian";
}
@Path("{id}")
	public SubResource findSubResource(@PathParam("id") String id){
return new SubResource();
}
}